{% extends "left.html" %}
{% block ucontent %}

                    <div itemtype="http://schema.org/Article" itemscope="" id="user-right"
                         class="widget-content single-post">
                        <div id="post-header">
                            <h1 itemprop="headline" class="page-title">编辑资料</h1>
                            <div class="poptip">
                                <span class="poptip-arrow poptip-arrow-left"><em>◆</em><i>◆</i>
                                </span>网站更新了，如果发现什么问题，欢迎反馈给火柴（站内信息和编辑资料页面的问题已知）
                            </div>
                        </div>

<div itemprop="articleBody" class="entry">
    <p>--{{message}}--<br></p>
    <form method="post" action="{{request.path}}" class="wpuf-form-add">
        <ul class="wpuf-form">
            <script type="text/javascript">
                wpuf_conditional_items = [];
            </script>
            <li class="wpuf-el user_login username">
                <div class="wpuf-label">
                    <label for="wpuf-user_login">
                        用户名
                        <span class="required">
                            *
                        </span>
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="text" disabled="" size="40" value="{{userinfo['uname']}}" placeholder="请用小写字母或数字，不能有空格"
                    name="uname" data-type="text" data-required="yes" id="user_login" class="textfield wpuf_user_login_3744">
                    <span class="wpuf-help"></span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>


            <li class="wpuf-el user_email email">
                <div class="wpuf-label">
                    <label for="wpuf-user_email">
                        邮箱<span class="required">*</span>
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="email" size="40" value="gufe198@163.com" placeholder="需要验证邮箱，请填写您的常用邮箱"
                    name="email" data-type="text" data-required="yes" class="email  wpuf_user_email_3744"
                    id="wpuf-user_email">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>

            <li class="wpuf-el user_mobile mobile">
                <div class="wpuf-label">
                    <label for="wpuf-user_mobile">
                        手机
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="tel" size="40" value="" placeholder="手机"
                    name="mobile" data-type="text" data-required="no" class="mobile  wpuf_user_mobile_3744"
                    id="wpuf-user_mobile">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>


            <li class="wpuf-el password password">
                <div class="wpuf-label">
                    <label for="wpuf-password">密码</label>
                </div>

                <div class="wpuf-fields">
                    <input type="password" size="40" value="" placeholder="至少7个字符" name="paswd"
                    data-type="text" data-required="no" class="password  wpuf_password_3744"
                    id="pass1">
                    <span class="wpuf-help">可用大小写字母、数字和符号，例如! " ? $ % ^ &amp; )</span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>

            <li class="wpuf-el avatar user-avatar">
                <div class="wpuf-label">
                    <label for="wpuf-avatar">上传头像</label>
                </div>
                <div class="wpuf-fields">
                    <div id="wpuf-avatar-upload-container" style="position: relative;">
                        <div data-required="no" data-type="file" class="wpuf-attachment-upload-filelist">
                            <a href="#" class="button file-selector  wpuf_avatar_3744" id="wpuf-avatar-pickfiles"
                            style="position: relative; z-index: 1;">
                                选择图像
                            </a>
                            <ul class="wpuf-attachment-list thumbnails">
                            </ul>
                        </div>
                        <div id="html5_19v6drlj912cd1nd6ufvpnf1kn93_container" class="moxie-shim moxie-shim-html5"
                        style="position: absolute; top: -1px; left: 0px; width: 76px; height: 29px; overflow: hidden; z-index: 0;">
                            <input type="file" accept="image/jpeg,image/gif,image/png,image/bmp" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;"
                            id="html5_19v6drlj912cd1nd6ufvpnf1kn93">
                        </div>
                    </div>
                    <!-- .container -->
                    <span class="wpuf-help">
                        尺寸为100-200像素的正方形 jpg、png 图片为佳，不能超过 1M，文件名不能包含中文
                    </span>
                </div>
                <!-- .wpuf-fields -->
                <script type="text/javascript">
                    jQuery(function($) {
                        new WPUF_Uploader('wpuf-avatar-pickfiles', 'wpuf-avatar-upload-container', 1, 'avatar', 'jpg,jpeg,gif,png,bmp', 1024);
                    });
                </script>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-el description description">
                <div class="wpuf-label">
                    <label for="wpuf-description">
                        个人简介
                    </label>
                </div>
                <div class="wpuf-fields">
                    <textarea cols="25" rows="3" placeholder="用简短的话语，描述最具个性的你！20-50字为宜。" data-type="textarea"
                    data-required="no" name="description" id="description" class="textareafield  wpuf_description_3744">
                    </textarea>
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-el user_url website">
                <div class="wpuf-label">
                    <label for="wpuf-user_url">
                        个人网站
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="url" size="40" value="" placeholder="例如 http://www.wpdaxue.com"
                    name="user_website" data-type="text" data-required="no" class="url  wpuf_user_url_3744"
                    id="wpuf-user_url">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-el qq_weibo qq-weibo">
                <div class="wpuf-label">
                    <label for="wpuf-qq_weibo">
                        腾讯微博
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="text" size="40" value="" placeholder="例如 http://t.qq.com/hcm602"
                    name="qq_weibo" data-type="text" data-required="no" id="qq_weibo" class="textfield wpuf_qq_weibo_3744">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-el sina_weibo sina-weibo">
                <div class="wpuf-label">
                    <label for="wpuf-sina_weibo">
                        新浪微博
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="text" size="40" value="" placeholder="例如 http://weibo.com/wpdaxue"
                    name="sina_weibo" data-type="text" data-required="no" id="sina_weibo" class="textfield wpuf_sina_weibo_3744">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-el google_plus google-plus">
                <div class="wpuf-label">
                    <label for="wpuf-google_plus">
                        Google+
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="text" size="40" value="" placeholder="例如 https://plus.google.com/u/0/105276589845964937994?rel=author"
                    name="google_plus" data-type="text" data-required="no" id="google_plus"
                    class="textfield wpuf_google_plus_3744">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-el twitter twitter">
                <div class="wpuf-label">
                    <label for="wpuf-twitter">
                        Twitter
                    </label>
                </div>
                <div class="wpuf-fields">
                    <input type="text" size="40" value="" placeholder="例如 https://twitter.com/hcm602"
                    name="twitter" data-type="text" data-required="no" id="twitter" class="textfield wpuf_twitter_3744">
                    <span class="wpuf-help">
                    </span>
                </div>
                <script type="text/javascript">
                    wpuf_conditional_items.push();
                </script>
            </li>
            <li class="wpuf-submit">
                <div class="wpuf-label">
                    &nbsp;
                </div>
                <input type="hidden" value="b422044950" name="_wpnonce" id="_wpnonce">
                <input type="hidden" value="/user/profile" name="_wp_http_referer">
                <input type="hidden" value="3744" name="form_id">
                <input type="hidden" value="3745" name="page_id">
                <input type="hidden" value="wpuf_update_profile" name="action">
                <input type="hidden" value="{{userinfo['_id']}}" name="uid">
                {%module xsrf_form_html() %}
                <input type="submit" value="更新个人资料" name="submit">
            </li>
        </ul>
    </form>
    <p>
    </p>
</div>


                    </div>
                    <div class="clear"></div>
{% end %}